//
//  HomeRecommendCell.m
//  PaiLeXiongProject
//
//  Created by 小獾科技 on 2017/8/22.
//  Copyright © 2017年 小獾科技. All rights reserved.
//

#import "HomeRecommendCell.h"

@implementation HomeRecommendCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        self.selectionStyle = UITableViewCellSelectionStyleNone;

        UILabel *label = [UILabel new];
        label.text = @"优选推荐";
        label.textColor = ColorFrom16(0x000000);
        label.font = PFMFONT(20);
        [self addSubview:label];
        [label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(10);
            make.centerY.equalTo(self);
            make.width.equalTo(@90);
            make.height.equalTo(@20);
        }];
        
        UIImageView *imageview = [UIImageView new];
        imageview.image = IMAGE(@"home_arrow-right");
        [self addSubview:imageview];
        [imageview mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(label.mas_right);
            make.width.equalTo(@16);
            make.height.equalTo(@16);
        }];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
